<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>后台--文章管理</title>
    <link rel="stylesheet" type="text/css" href="<?php echo isset($skin)?$skin:"";?>images/style.css" />
    <base target="_self"/>

    <script src='<?php echo isset($skin)?$skin:"";?>js/jquery.min.js'></script>
    <script type="text/javascript" src="<?php echo isset($skin)?$skin:"";?>js/jquery.form.min.js"></script>
    <script type="text/javascript" src="<?php echo isset($skin)?$skin:"";?>js/dist/dialog-min.js"></script>
    <script src="<?php echo isset($skin)?$skin:"";?>js/admin.js"></script>
    <script type="text/javascript">
        <!--
        $(document).ready(function () {
            $('.new_table tbody tr:even').addClass('h'); //奇偶变色，添加样式
        });
        //-->
    </script>
    <script type="text/javascript" charset="UTF-8" src="<?php echo isset($skin)?$skin:"";?>/js/validate.js"></script>
    <script type="text/javascript" charset="UTF-8" src="<?php echo isset($skin)?$skin:"";?>js/artTemplate.js"></script>
    <script type="text/javascript" charset="UTF-8" src="<?php echo isset($skin)?$skin:"";?>js/artTemplate-plugin.js"></script>
    <script type="text/javascript" charset="UTF-8" src="<?php echo isset($skin)?$skin:"";?>js/form.js"></script>
    <script type="text/javascript" charset="UTF-8" src="<?php echo isset($skin)?$skin:"";?>js/artDialog.js"></script>
<script type="text/javascript" charset="UTF-8" src="<?php echo isset($skin)?$skin:"";?>js/iframeTools.js"></script>
<link rel="stylesheet" href="<?php echo isset($skin)?$skin:"";?>js/artdialog.css" type="text/css">
</head>
<body>
<div class="hh6"></div>
<form method="Post" name="k_form" action="?c=<?php echo isset($classname)?$classname:"";?>&a=<?php echo isset($form_action)?$form_action:"";?>">
    <table id="senfe" class="new_table" width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
        <thead><tr class="n_bt"><td colspan="2" align="center">爱不语商城管理系统</td></tr>
        <tr><th height="28" colspan="2" class="thbt">【<?php echo isset($title)?$title:"";?>】</th></tr>
        </thead>
        <tbody id="bstable">
        <tr>
            <td width="13%" height="30" align="right">会员名称：</td>
            <td width="87%">
                <input name="username" type="text" class="input400" value="<?php echo isset($oj->username)?$oj->username:"";?>" disabled/></td>
        </tr>
        <tr>
            <td width="13%" height="30" align="right">Email：</td>
            <td width="87%">
                <input name="email" type="text" class="input400" value="<?php echo isset($oj->email)?$oj->email:"";?>" disabled/></td>
        </tr>
        <tr>
            <td width="13%" height="30" align="right">余额：</td>
            <td width="87%">
                <input name="email" type="text" class="input400" value="<?php echo isset($oj->balance)?$oj->balance:"";?>" disabled/></td>
        </tr>
        <tr>
            <td width="13%" height="30" align="right">密码：</td>
            <td width="87%">
                <input name="pass" type="text" class="input400" value=""/></td>
        </tr>
        <tr>
            <td width="13%" height="30" align="right">重复密码：</td>
            <td width="87%">
                <input name="repeat" type="text" class="input400" value=""/></td>
        </tr>
        <tr>
            <td width="13%" height="30" align="right">昵称：</td>
            <td width="87%">
                <input name="nickname" type="text" class="input400" value="<?php echo isset($oj->nickname)?$oj->nickname:"";?>"/></td>
        </tr>
        <tr>
            <td width="13%" height="30" align="right">会员组：</td>
            <td width="87%">
                <select name="groupid" class="input400 selecth" id="fid" onfocus="kcancel('fid')">
                    <option value="0" selected="selected" class="red">请选择分组</option>
                    <?php if(is_array($goup_list))  foreach($goup_list as $v) { ?>
                    <option value="<?php echo isset($v->id)?$v->id:"";?>" <?php if($oj->groupid==$v->id){?>selected="selected" <?php }?>><?php echo isset($v->group_name)?$v->group_name:"";?></option>
                    <?php }?>

                </select></td>
        </tr>
        <tr>
            <td width="13%" height="30" align="right">位置：</td>
            <td width="87%">
                <select name="s1" class="input400 selecth" id="st1">
                <option value="0" selected="selected" class="red">请选择小区</option>
                <?php if(is_array($slist))  foreach($slist as $v) { ?>
                <option value="<?php echo isset($v->id)?$v->id:"";?>" <?php if($oj->s1==$v->id){?>selected="selected" <?php }?>> <?php echo isset($v->name)?$v->name:"";?></option>
                <?php }?>

                </select>
                <select name="s2" class="input400 selecth" id="st2">
                <option value="0" selected="selected" class="red">请选择</option>
                    <?php if(is_array($slist2))  foreach($slist2 as $v) { ?>
                    <option value="<?php echo isset($v->id)?$v->id:"";?>" <?php if($oj->s2==$v->id){?>selected="selected" <?php }?>> <?php echo isset($v->name)?$v->name:"";?></option>
                    <?php }?>
                </select></td>
        </tr>
        <tr>
            <td width="13%" height="30" align="right">详细地址：</td>
            <td width="87%">
                <input name="address" type="text" class="input400" value="<?php echo isset($oj->address)?$oj->address:"";?>"/></td>
        </tr>
        <tr>
            <td width="13%" height="30" align="right">家庭人数：</td>
            <td width="87%">
                <input name="family" type="text" class="input400" value="<?php echo isset($oj->family)?$oj->family:"";?>"/></td>
        </tr>


        <tr>
            <td height="35" colspan="2" align="center" >
                <input name="c" type="hidden" value="<?php echo isset($classname)?$classname:"";?>" />
                <input name="a" type="hidden" value="<?php echo isset($form_action)?$form_action:"";?>" />
                <input name="id" type="hidden" value="<?php echo isset($id)?$id:"";?>" />
                <input name="add" id="submit" class="button" type="submit" value="确认" />
                &nbsp;<input name="" type="reset" class="button" value="重置" />
            </td>
        </tr>
        </tbody>
    </table>
</form>
<script type="text/javascript">
    $(function(){
        $("#st1").on('change',function(){
            change($(this).val());
        });
        function change(id){
            $.getJSON('index.php?a=get_street&id='+id, function(data){
                var html='';
                if( (data)==null){
                    $("#st2").html(html);
                    return false;
                }
                $.each(data, function(index, item){
                    html+='<option value="'+item.id+'">'+item.name+'</option>';
                })
                $("#st2").html(html);
            })
        }
    });
</script>
</body>
</html>